package otcv.hr.webapp.action.login;

import java.util.ResourceBundle;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import otcv.hr.controller.ActionServlet;

/**
 * @author : H-Thien
 * @comment : Logout Process Action
 */
public class LogoutAction extends ActionServlet {
	private ResourceBundle bundle = ResourceBundle.getBundle("URL");

	@Override
	protected String getURL() {
		// TODO Auto-generated method stub
		return bundle.getString("LOGOUT_ACTION");
	}

	@Override
	public void process(ServletContext sc, HttpServletRequest req, HttpServletResponse res) throws Exception {
		req.getSession().invalidate();
	}
}